package homework;

public class AddTest extends MathTest {

    //创建有参构造器
    public AddTest(int a,int b) {
        super(a,b);
    }

    //计算功能
    @Override
    public int calculate() {
        return a+b;
    }

    //题目描绘
    @Override
    public String getQuestion() {
        return a + "+" + b + "= ? ";
    }
}
